package com.bingxue.edu.management.education.model.req;

import com.bingxue.edu.common.enums.ChangeTypeEnum;
import com.bingxue.edu.common.enums.OperateSourceEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 转班请求信息
 *
 * @author zq
 * @since 2024/08/21 00:02
 */
@Data
@Schema(description = "转班请求信息")
public class ClassChangeReq {

    @Schema(description = "原班级id")
    @NotBlank(message = "原班级id不能为空")
    private String oldClassId;

    @Schema(description = "新班级id")
    @NotBlank(message = "新班级id不能为空")
    private String newClassId;

    @Schema(description = "学生id")
    @NotBlank(message = "学生id不能为空")
    private String studentId;

    @Schema(description = "报名变更类型")
    @NotNull(message = "类型不能为空")
    private ChangeTypeEnum changeType;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "转班课次顺序列表")
    private List<Integer> changeLessonIndexList;

    @Schema(description = "是否仅转所有剩余未上课次，true-剩余未上课次 false-自定义选择课次")
    @NotNull(message = "选择项不能为空")
    private boolean onlyRemainLesson;

    @Schema(description = "操作来源")
    private OperateSourceEnum operateSource;
}
